
// 公众号
const appid = ''
const appsecret = ''

// 微信请求domain
const wx_api_url = 'https://api.weixin.qq.com'
const wx_open_api_url = 'https://open.weixin.qq.com'
const wxapi = (path, token) => `${ wx_api_url }${ path }${ token ? `?access_token=${ token }` : '' }`

// OPEN API
const auth_src = `${ wx_open_api_url }/connect/oauth2/authorize`

// JSSDK API
const access_token_src = `${ wx_api_url }/sns/oauth2/access_token`
const userinfo_src = `${ wx_api_url }/sns/userinfo`
const ticket_src = `${ wx_api_url }/cgi-bin/ticket/getticket`
const userinfo_full_src = `${ wx_api_url }/cgi-bin/user/info`


module.exports = {
  appid,
  appsecret,
  ticket_src
}
